package 面向对象_中.e多态性.练习3;

/**
 * @Projectname java_based
 * @Filename Circle
 * @Author an
 * @Data 2022/7/2 10:35
 * @Description TODO
 */
public class Circle extends GeometricObject {

    private double radius;

    public Circle(double weight,String color, double radius) {
        super(color,weight);
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    @Override
    public double findArea() {
        return 3.14 * radius * radius;
    }
}
